package entity.salary;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author beisheng
 * @since 2023-03-20
 */
@Getter
@Setter
@TableName("insurance_file")
public class InsuranceFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "sa_id", type = IdType.AUTO)
    private Integer saId;

    /**
     * 社保方案ID
     */
    @TableField("social_id")
    private Integer socialId;

    /**
     * 起始缴纳月
     */
    @TableField("social_start")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date socialStart;

    /**
     * 社保基数
     */
    @TableField("social_cardinal")
    private Double socialCardinal;

    /**
     * 社保账号
     */
    @TableField("social_accounts")
    private String socialAccounts;

    /**
     * 备注
     */
    @TableField("social_remark")
    private String socialRemark;

    /**
     * 公积金方案ID
     */
    @TableField("accum_id")
    private Integer accumId;

    /**
     * 起始缴纳月
     */
    @TableField("accum_start")
    private Date accumStart;

    /**
     * 缴纳基数
     */
    @TableField("accum_cardinal")
    private Double accumCardinal;

    /**
     * 公积金账号
     */
    @TableField("accum_accounts")
    private String accumAccounts;

    /**
     * 备注
     */
    @TableField("accum_remark")
    private String accumRemark;


}
